package cn.kgc.ffzw.day17;

public class Dog extends Pet{
    String stain;


    public Dog(String stain) {
        this.stain = stain;
    }

    public Dog(String name, int helath, int love, String stain) {
        super(name, helath, love);
        this.stain = stain;
    }

    public String getStain() {
        return stain;
    }

    public void setStain(String stain) {
        this.stain = stain;
    }

    @Override
    public void print() {
        super.print();
        System.out.println("我的品种是："+stain);
    }
    @Override
    public void eat(){
        System.out.println("狗吃💩");
    }

}
